Use isKeyWindow instead of isMainWindow for the non-click-through check
authorRichard Hult <richard@imendio.com>
Sat, 31 Jan 2009 20:32:11 +0000 (21:32 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:31 +0000 (10:15 +0200)
gdk/quartz/gdkevents-quartz.c

index a24ea453697e8979dc5fc671be7d192401bf1609..3a8d32420d25b61a788ff074e1fef93045e67368 100644 (file)
@@ -1538,7 +1538,7 @@ gdk_event_translate (GdkEvent *event,
 
       if (![NSApp isActive])
         return FALSE;
-      else if (![impl->toplevel isMainWindow])
+      else if (![impl->toplevel isKeyWindow])
         return FALSE;
     }